{% extends 'base.html' %}
{% load bootstrap3 %}
{% block style %}
    h4 {
    font-size: 24px;
    }
{% endblock %}

{% block container %}
    <div class="col-md-3">
        <ul class="list-group">
            <a href="{% url 'users:setting' %}">
                <li class="list-group-item">基本资料</li>
            </a>
            <a href="{% url 'users:changepass' %}">
                <li class="list-group-item">修改密码</li>
            </a>

        </ul>
    </div>
    <div class="col-md-9">

        <div class="box">
            <div class="content">
                <div class="page-header">
                    <h4><img class="img-circle" src="{{ request.user.avatar.url }}">
                        {{ request.user.nickname }} 个人资料</h4>
                </div>

                <form  method="post"  enctype="multipart/form-data"  class="form" id="myform">
                    {{ message }}
                    {% csrf_token %}
                    {% bootstrap_form form %}
                    <button class="btn btn-primary btn-sm" type="submit">更新资料</button>
                </form>
            </div>
        </div>
    </div>
{% endblock %}

